<?php
   include  'base.php';


//    字段
$pagenum = 1;
$pagesize = 32;
// $start = ($pagenum - 1) * $pagesize;

$sql = "SELECT * FROM `goods` LIMIT $pagenum,$pagesize";

$res2 = $conn -> query($sql);
$arr2 =Array();

while ($row = mysqli_fetch_assoc($res2)){
    array_push($arr2,$row);
}

echo json_encode($arr2);
?>